package com.ht.pms.core.dto;

/**
 * @Auther: 喻尊龙
 * @Date: 2019/1/7 14:19
 * @Description:
 */
public enum ProcessCodeEnum {

    APPLY_MONEY_RYX(1,"PROC-F4604728-0F1C-409A-9A10-096011AC1147","融易行报销","ryx"),
    APPLY_MONEY_FC(2,"PROC-6AFA1615-8A89-4ADA-9BE8-EA4A54268B1E","富成报销","fc"),
    BORROW_MONEY_FC(3,"PROC-1E06D0B9-1193-4AE1-B717-B3CD984EE697","富成借款","fc"),
    LAW_FEE_FC(4,"PROC-DFYJXX2V-4J0Z6VHFO6TPXTO51WJS1-7HLHEKMJ-2","富成法务费","fc"),
    BANK_TREASURER_FC(5,"PROC-RIYJTXWV-EIZYJPMLPRHYZWIDDQBM1-TPS1ZJMJ-N","富成资金调拨","fc"),
    NORMAL_FC(6,"PROC-CFYJQ98V-D9A2I0MC45E4OBJ0034T2-JC5266RJ-T","常用报销单","fc");

    private Integer id;
    private String processCode;
    private String processName;
    private String companyType;

    ProcessCodeEnum(Integer id, String processCode, String processName, String companyType) {
        this.id = id;
        this.processCode = processCode;
        this.processName = processName;
        this.companyType = companyType;
    }


    public static String getCompanyTypeByProcessCode(String intf)
    {
        ProcessCodeEnum[] intfs = (ProcessCodeEnum[])ProcessCodeEnum.class.getEnumConstants();
        for (ProcessCodeEnum t : intfs) {
            if (t.processCode.equals(intf)) {
                return t.getCompanyType();
            }
        }
        return null;
    }


    public Integer getId() {
        return id;
    }

    public String getProcessCode() {
        return processCode;
    }

    public String getProcessName() {
        return processName;
    }

    public String getCompanyType() {
        return companyType;
    }
}
